
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%-- <%@ taglib prefix="s" uri="/struts-tags"%> --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Liste des DVD</title>
</head>
<body>
	<c:if test="${not empty filmAjouter }">
		<label>Ce film vient d'être ajouté : </label>${filmAjouter} <br />
		<br />

	</c:if>
	<table border="1">
		<tr align="center">
		
			<td width="200">Titre</td>
			<td width="200">Realisateur</td>
			<td width="200">Acteur 1</td>
			<td width="200">Acteur 2</td>
			<td width="200">Support Film</td>
			<td width="200">Genre</td>
<!-- 			<td width="200">Resumé</td> -->
			<td width="200">Durée</td>
			<td width="200">Anciennete</td>
			<td width="200">Date</td>
			<td width="200">Tva</td>
			<td width="200">Prix de vente</td>
			<td width="200">Stock</td>
			<td width="200">Details</td>
			<td width="200">Ajout Panier</td>
			<c:if test="${not empty adminSession }">		
			<td width="200">Modification</td>
			</c:if>
			
			
			


		</tr>

		<c:forEach var="film" items="${listeFilm}">
			<tr align="left">
				<td>${film.titre}</td>
				<td>${film.realisateur}</td>
				<td>${film.acteurs[0]}</td>
				<td>${film.acteurs[1]}</td>
				<td>${film.supportFilm.valeur}</td>
				<td>${film.genre.valeur}</td>
<%-- 				<td>${film.resume}</td> --%>
				<td>${film.duree}</td>
				<td>${film.anciennete.valeur}</td>
				<td>${film.anneeDeSortie}</td>
				<td>${film.tva.valeur}</td>
				<td>${film.prixVente}</td>
				<td>${film.stock}</td>
				
				<td align="center"><a href="DetailsArticle?action=details&id=${film.id}">Voir Details Article</a></td>			
				<td align="center"><a href="AfficherPanier?id=${film.id}">Ajouter Au Panier</a></td>
				<c:if test="${not empty adminSession }">
				<td><a href="SaisirFilm?action=modification&id=${film.id}">Modifier Film </a></td>
				</c:if>
			</tr>
		</c:forEach>
	</table>
	<br />
	<br />
	<input type="button" value="Saisir nouveau film" name="nouveau film"
		onclick="location.replace('SaisirFilm')" />

</body>
</html>
